#ifndef COMLIST_H
#define COMLIST_H

#include "main.h"

#include "IPCS.h"

namespace CommandWork
{
	class ComList
	{
	private:
		static std::wstring m_NULL;
		static std::vector<COMLIST> m_comMap;
		static CRITICAL_SECTION m_sec;
		
		ComList();
		static ComList *m_Ins;
	public:
		virtual ~ComList();
		static ComList* GetInstance();
		void PushCom(UINT ID, std::wstring msg);
		std::wstring PopCmd(UINT ID);
		COMLIST PopFirstCom();
	};
}
#endif